<?php

/**
* @current cmsmessagespraise.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2017年2月8日 下午3:50:55
*/
namespace haibao\jiepai\model\data\messages;

class CmsMessagesPraise extends \haibao\jiepai\model\data\Base{
    
    /**
     * 3,文章点赞   4,评论点赞  6,回复点赞
     */
    const TYPE_ARTICLE = 3;
    const TYPE_COMMENT = 4;
    const TYPE_REPLY = 5;
    
    public $ToUserID;
    
    public $FromUserID;
    
    public $TypeID;
    
    public $Type;
    
    public $MessageID;
    
    public $CreateTime;
    
    public function __construct(){
        parent::__construct();

        $this->intField('ToUserID', 'ToUserID',true);
        $this->intField('FromUserID', 'FromUserID',true);
        $this->intField('TypeID', 'TypeID',true);
        $this->intField('Type', 'Type',true);
        $this->intField('MessageID', 'MessageID');
        $this->dateField('CreateTime', 'CreateTime');
        
        $this->setTableName('cms_messages_praise');
    }
}

    
